<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head th:include="common/template :: res(title='用户')">

</head>
<body>
	<script type="text/javascript">
		$(function() {
			$('#formSubimt').click(function() {
				var userType = $('input:radio[name="userType"]:checked').val();

				doRequest({
					type : 'POST',
					url : 'invokeUser',
					data : {
						userType : userType,
						userName : $('#userName').val(),
						mobileNo : $('#mobileNo').val(),
						identNo : $('#identNo').val(),
						realName : $('#realName').val(),
						enterName : $('#enterName').val(),
						orgCode : $('#orgCode').val()
					}
				}, function(data) {
					console.log(data);
					$('#merchantID').val(data.merchantID);
					$('#sign').val(data.sign);
					$('#request').val(data.requestBody);
					$('#submitForm').submit();
				});
			});

		});
	</script>


	<ol class="breadcrumb"> 
		<li class="active">用户登录</li>
	</ol>
	<span th:value="${error}"></span>
<form action="login" method="post">
		<div class="form-horizontal" style="padding-left: 20px;">


			<div class="form-group">
				<label for="mobileNo">用户名</label> <input type="text"
					class="form-control" name="username" placeholder="请输入用户名" />
			</div>
			<div class="form-group">
				<label for="identNo">密码</label> <input type="password"
					class="form-control" name="password" placeholder="请输入密码" />
			</div>

			<div class="form-group">

				<input type="submit" class="btn btn-default" >提交</input>
				

			</div>
		</div>
	</form>

</body>
</html>